import request from '@/utils/request'

export default {

  //获取评价List
  getEvaluateList(current, limit, evaluateQuery) {
    return request({
      url: `/intern/user-evaluate/list/${current}/${limit}`,
      method: 'post',
      data: evaluateQuery
    })
  },
  getEvaluateInfo(id) {
      return request({
        url: `/intern/user-evaluate/info/${id}`,
        method: "post"
      })
  },
  updateEvaluateById(evaluate){
    return request({
      url: `/intern/user-evaluate/update`,
      method: "put",
      data: evaluate
    })
  },
  deleteEvaluate(id) {
    return request({
      url: `/intern/user-evaluate/delete/${id}`,
      method: "delete"
    })
  },
  addEvaluate(evaluate) {
    return request({
      url: `/intern/user-evaluate/add`,
      method: "post",
      data: evaluate
    })
  }

}